#!/usr/bin/python
__author__ = "Francesco di Dio, Simone Pasculli"
__copyright__ = "Copyright 2014, The M.A.D.S. Project"
__credits__ = ["none",]
__license__ = "GPL"
__version__ = "1.0.1"
__maintainer__ = "Francesco di Dio, Simone Pasculli"
__email__ = "tabuto83@gmail.com"
__status__ = "Development"

class FileAppender():
    def __init__(self, filename="log"):
        self.filename = filename
        self.f = open(filename, "w")

    def append(self,message):
        self.f.write('\n'+message) # Write a string to a file


    def __del__(self):
		self.f.close()
